<script lang="ts">
import { defineComponent, onMounted } from "vue";
import { getCurrentUserInfo } from "@/api/user";
import { useMainStore } from "@/store";
import { storeToRefs } from "pinia";
import { useRoute } from "vue-router";

export default defineComponent({
  setup() {
    const mainStore = useMainStore();
    const route = useRoute()
    const {
      EditorType
    } = storeToRefs(mainStore);
    onMounted(() => {
      getCurrentUserInfo().then((res) => {
        localStorage.setItem("userInfo", JSON.stringify(res.data));
      });


    });
    // return {
    //   defineComponent,
    //   onMounted,
    //   onUnmounted,
    //   reactive,
    //   ref,
    //   nextTick,
    //   onBeforeMount,
    //   watch,
    // };
  },
});
</script>
<template>
  <router-view />
</template>

<style lang="scss">
#freeeditor-app {
  height: 100%;
}
</style>
